import config from '~/config'

/*
 * 引入百度统计
 */
if (config.bdStatEnable && typeof window !== 'undefined' && process.env.NODE_ENV === 'production') {
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = `https://hm.baidu.com/hm.js?${config.bdStatSI}`;
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
}

export default {}
